<%@ page language="java" import="java.util.*,Bean.*" pageEncoding="UTF-8"%>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <!-- 引入 Bootstrap -->
      <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
 
      <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
      <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
      <!--[if lt IE 9]>
         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
      <![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body background="001.jpg">
 
<div class="container" >
		<h3 class="text-center">欢迎教师登录考试系统</h3><br>
		<div class="tabbable" id="tabs-28077">
								   <ul class="nav nav-tabs">
									<li>
										 <a href="../teacher/qk.jsp" data-toggle="tab">学生练习情况</a>
									</li>
                                    <li>
										 <a href="../teacher/score.jsp" data-toggle="tab">学生练习分数</a>
									</li>
									<li>
										 <a href="../teacher/qdb.jsp" data-toggle="tab">操作题库</a>
									</li>
                                    <li class="active">
										 <a href="../teacher/grant.jsp" data-toggle="tab">申请操作</a>
									</li>
								</ul>
			<div class="tab-content">
									<div class="tab-pane active" id="panel-312119">
										<p><br>
										<h4>批准所授课班级学生的申请注册</h4><br><br>
										</p>
									</div>
              	<div class="span12">
	  				<table width="100%" border="1" cellspacing="0" cellpadding="0" align="center" class="table table-hover">
						<tr align="center">
				      <td width="15%">学号</td>
				      <td width="15%">姓名</td>
		              <td width="15%">班级</td>
		              <td width="15%">QQ</td>
		              <td width="15%">电话</td>
		              <td colspan="2">是否通过</td>
		              </tr>
		              <% Integer js=(Integer)(session.getAttribute("currentuser"));
		              
		              Js js1=new Js();
		              ArrayList<Xs> list= js1.findUnpassedXs(js);
		      	      for (Xs x : list) {
		      %>
		       <tr align="center">	
               <td><%=x.getSno()%></td>	       
		       <td><%=x.getSname() %></td>
		       <td><%=x.getBanji()%></td>
		       <td><%=x.getQq() %></td>
		       <td><%=x.getPhone()%></td>
		       
		        <td align="center"><div>
<form action="${pageContext.request.contextPath }/servlet/QuestionContrllor?contrltype=3&student=<%=x.getSno()%>" method="post">
		       <input type="submit" class="btn btn-info btn-sm" value="通过"/>
</form>
		       </div></td>
		               <td align="center"><button type="button" class="btn btn-info btn-sm">不通过</button> <div> </td>			</tr>
            <%} %>
		     	    </table>
				</div>
	           </div>
			</div>
		
</div>
<!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
      <script src="https://code.jquery.com/jquery.js"></script>
      <!-- 包括所有已编译的插件 -->
      <script src="js/bootstrap.min.js"></script>
</body>
</html>